home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / batchsel.zip / BATCHSEL.DOC next >
Text File  |  1991-05-24  |  2KB  |  72 lines

  1.  
  2.                               BATCHSEL 1.1
  3.                           Batch File Selector
  4.  
  5.               Copyright (c)1991 by P.A. Geelen, Amsterdam.
  6.                          Email: geelen@cs.vu.nl
  7.  
  8.     This program was put in the Public Domain by the author. It may
  9.     be distributed freely. It may not be sold, nor be made part of
  10.     anything that is sold.
  11.  
  12.     NOTE: My latest programs and updates can
  13.     always be found at ABBS, 03240-62502/62504
  14.  
  15.  
  16. BATCHSEL is a simple program that is meant to ease the use of many
  17. programs that require filename paramters.
  18. It is primarily meant to be used in batch files. It will offer an alpha-
  19. betically sorted file selection window, out of which the user can choose
  20. one file. The files displayed in this window can be restricted to a certain
  21. set, and you can specify your own title" (or "prompt") for the window.
  22.  
  23. The window works as follows:
  24.  
  25.  - The arrow keys, HOME, END, PGUP and PGDN will move the cursor
  26.    to point to another file or subdirectory.
  27.  - pressing RETURN on a filename will select that filename.
  28.  - pressing RETURN on a directory will cause a change to that
  29.    directory.
  30.  - pressing ESC will abort the file selection.
  31.    ERRORLEVEL will then be set to 1.
  32.  - pressing any letter will move your cursor to the next file or
  33.    subdirectory starting with that letter.
  34.  
  35.  
  36. USAGE:
  37.  
  38.        BATCHSEL <match> <text> <dos command>
  39.  
  40. Where
  41.  
  42.   <match> is a (wildcarded) filename, specifying which kind
  43.           of file the user should choose,
  44.   <text>  is the text that will be displayed as "prompt".
  45.           because the DOS command-line can't handle spaces,
  46.           use the underscore "_" whenever you need a space.
  47.   <dos command>
  48.           is any dos command you would like to execute.
  49.           BATCHSEL will replace every occurance of "%%f"
  50.           with the selected filename.
  51.           NOTE: IF USED FROM THE DOS PROMPT, AND NOT FROM
  52.           A BATCH FILE, USE %f INSTEAD OF %%f!
  53.  
  54. The batch file "demo" in this archive contains an example:
  55.  
  56.      batchsel *.* Select_a_file_to_view TYPE %%f |MORE
  57.  
  58. i.e. the DOS command
  59.  
  60.      TYPE <filename> |MORE
  61.  
  62. will be executed after the user has chosen a file.
  63. Other examples:
  64.  
  65.      batchsel *.DOC  Select_a_file_to_print   TYPE %%f >PRN
  66.      batchsel *.ASM  Assemble_which_file?   MASM %%f;
  67.      batchsel *.EXE  RUN_WHICH_FILE?  %%f;
  68.  
  69. See also the demonstration batch files...
  70.  
  71. Have fun.
  72.